import Vue from 'vue'
import VueLazyload from 'vue-lazyload'

// 插件
/* function install(vue,options){
  vue.directive('lazy',(el,bindings)=>{
    
  })
} */
 
Vue.use(VueLazyload, {
  preLoad: 1.3,
  error: 'https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fimg.mp.itc.cn%2Fq_70%2Cc_zoom%2Cw_640%2Fupload%2F20170721%2F50b6c03f562e4e1083b17c37e07c0e80_th.jpg&refer=http%3A%2F%2Fimg.mp.itc.cn&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=jpeg?sec=1626959762&t=50e4efaaf0b7718ce16e0c21c6a6635f',
  loading: 'https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fimg.mp.itc.cn%2Fq_70%2Cc_zoom%2Cw_640%2Fupload%2F20170721%2F50b6c03f562e4e1083b17c37e07c0e80_th.jpg&refer=http%3A%2F%2Fimg.mp.itc.cn&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=jpeg?sec=1626959762&t=50e4efaaf0b7718ce16e0c21c6a6635f',
  attempt: 3
})